package com.jingtao.product.domain.request;

import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.Min;

/**
 * @ClassName:商品类别查询参数对象
 * @Description:
 * @Author: zengfanzhen
 * @Date: 2024/4/2 17:26:55
 */
@Data
public class ProductCategoryQuery {

    @ApiModelProperty(value = "父级ID", example = "1")
    private Long parentId;

    @ApiModelProperty(value = "每页大小", example = "10")
    @Min(value = 1, message = "每页大小不能小于1")
    private Integer pageSize;

    @ApiModelProperty(value = "页码", example = "1")
    @Min(value = 1, message = "页码不能小于1")
    private Integer pageNum;
}

